<include file="common/header_lixin" title="钱包地址" />
<style>
    .weui-label{
        color: #292828;
    }
</style>
<div class="page">
    <div class="page-hd">
        <div class="header bor-1px-b">
    <div class="header-left">
        <a href="javascript:history.go(-1)" class="left-arrow"></a>
    </div>
    <div class="header-title">钱包地址</div>
    <div class="header-right">
        <a href="#"></a>
    </div>
</div>
    </div>

    <div class="page-bd">
        <!-- 页面内容-->
        <div class="card-flex tc">
            <div class="flex_item">
                <div class="fs26">钱包地址 </div>
                <div class="fs42 font_number" id="text">{$icon['address']}</div>
                <div class="fs26">确认钱包地址 </div>
                <textarea id="input" readonly>{$icon['address']}</textarea>
                <style>
                    #input{
                        width: 87%;
                        font-size: 0.28rem;
                        font-family: number;
                        text-align: center;
                        border: none;
                    }
                </style>
            </div>
        </div>

        <div class="weui-btn-area">
            <a href="javascript:;" onClick="copyText()" class="weui-btn weui-btn_primary">点击复制</a>
        </div>
    </div>
    <include file="common/footer_lixin"/>
</div>
<script>
    function copyText() {
        var text = document.getElementById("text").innerText;
        var input = document.getElementById("input");
        input.value = text; // 修改文本框的内容
        input.select(); // 选中文本
        document.execCommand("copy"); // 执行浏览器复制命令
        alert("复制成功");
    }
</script>
</body>
</html>
